package net.sivashov.grailssample.controllers

import net.sivashov.grailssample.Book
import net.sivashov.grailssample.ds.ContextHolder

/**
 * @author leopold
 * @since 23.02.13
 */
class BookController {
    def view = {
        ContextHolder.currentDatasourceName = params.datasourceName
        [books: Book.list()]
    }
}
